package cw.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cw.entity.User;

public interface UserMapper {
    
	int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    
    List<User> queryUser(@Param("username") String username,@Param("description") String description,@Param("offset") Integer offset, @Param("pageSize") Integer pageSize);

    Integer getTotal(@Param("username") String username,@Param("description") String description);
}